Linux dynamic library compilation and usage detailed analysis, linux dynamic compilation Analysis
Introduction
This article focuses on some operations on using gcc to compile dynamic libraries on linux and provides in-depth case analysis.Finally, we will introduce the dynamic library plug-in technology to make the code backward compatible,
Pre-compile, compile, and generate the final link of the mechanical Code. For the output executable file process, refer to the following.
Gcc compiling proces
_start (void);/** get the value of the corresponding key for configuration, using key * key: name * in configuration: return the corresponding key value. If no NULL is returned, print the log */extern const char * SC _get (const char * key); # endif //! _ H_SCCONF
There are only two interfaces. Enable this configuration to read the library and obtain the content of the specified key. The file directory structure is as follows:
The usage of the above interface is also very simple, for example
s
series of functions.Note: many functions of OpenGL adopt this form. Adding parameter description marks to the same prefix will help you learn more.
Here, we can extend it here. In the current compiler, it is recommended that 5.f be equivalent to 5.0f. we recommend that you do not use these skills. For example, sometimes you may think that the C99/C11 style is good,
Sometimes I think the C89 style is the safest.
Example:
//C89int hoge;int piyo;hoge = 16;piyo = 1;printf("hoge = %d, piyo = %d\n",h
Fangfang anti-it-as-you-go anti-bot-like fufei Fei Yu Fei FENG boiling Fen Yu Feng Fengfeng when you encounter Fufu Fu fu He he I have written a draft for the High-paste lambing cake in the middle of the port, and told my goo to cut the GEG. stem Gong Gu guoguo hired guoguo, gritted, Guile, guoguo, guidao, guidao, and guidao huang Xiaoyu, Wang guoguo, wrapped in a shell, a child, and a child, he hahai, a disaster, and Han He ha hao High Consumption Hao hehao hehehehehehehehehehehehao hehao
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.